﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ShivamEMR.Model.Domain.PatientDomain;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.MedicalDomain
{
   public class Disease
    {
        #region Properties
        public Guid ID { get; set; }
        public string Code { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
        public string Notes { get; set; }
        #endregion

        #region ForeignKeyProperties
        [ForeignKey("Category")]
        public Guid CategoryID { get; set; }
        [ForeignKey("Group")]
        public int GroupID { get; set; } 
        #endregion
        
        #region NavigationalProperties
        public virtual DiseaseCategory Category { get; set; }
        public virtual DiseaseGroup Group { get; set; }
        public virtual ICollection<Disease> Children { get; set; }
        public virtual ICollection<Diagnosis> Diagnosises{ get; set; }
        #endregion
       
    }
}
